package com.campusbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 项目经历表
 * </p>
 *
 * @author yezi
 * @since 2025-07-24
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@TableName("project_experiences")
@Schema(name = "ProjectExperiences", description = "项目经历表")
public class ProjectExperiences implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户类型：1-教师，2-学生")
    private Byte userType;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "项目名称")
    private String projectName;

    @Schema(description = "项目角色")
    private String projectRole;

    @Schema(description = "开始时间")
    private LocalDate startTime;

    @Schema(description = "结束时间")
    private LocalDate endTime;

    @Schema(description = "项目描述")
    private String projectDescription;

    @Schema(description = "使用技术")
    private String technologiesUsed;

    @Schema(description = "项目链接")
    private String projectUrl;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
